package jtk.project4.fleet.templateField;


import java.awt.Dimension;
import java.text.SimpleDateFormat;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.CalendarControl;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.CalendarField;

public class ContohCalendarField extends GroupControl{
	private CalendarControl contohCalendarField ;
	
	public ContohCalendarField(String bindID){
		
		setTitle("header.nama field");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		contohCalendarField = new CalendarControl("tgl",20);
		contohCalendarField.showYearSpinner(true);
		contohCalendarField.setPreferredSize(new Dimension(166, 20));
	}
	
	private void createLayout() {
		setLayout(new FormLayout())
		.addLabel("label.Tanggal")		.addField(contohCalendarField);
	}

}
